package cn.smile.bean.entity.basic;

import cn.smile.commons.domain.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 账单表
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("expense_bill")
public class ExpenseBill extends BaseDomain {
    @Serial
    private static final long serialVersionUID = 280602339899088005L;
    /**
     * 店铺ID
     */
    private String shopId;

    /**
     * 会员ID
     */
    private String memberId;

    /**
     * 消费项目ID
     */
    private String expenseItemId;

    /**
     * 账单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime billTime;

    /**
     * 原价
     */
    private BigDecimal originalPrice;

    /**
     * 折扣
     */
    private BigDecimal discount;

    /**
     * 最终价格
     */
    private BigDecimal finalPrice;

    /**
     * 赠送金额
     */
    private BigDecimal giftPrice;

    /**
     * 代金券ID
     */
    private String vouMemId;

    /**
     * 账单操作人员
     */
    private String operateUserId;

    /**
     * 备注
     */
    private String remark;
}